﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Department_Manager.aspx.cs"
    Inherits="Admin_Department_Department_Manager" EnableEventValidation="false"
    Theme="admin_skin" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>部门管理</title>
    <link href="../../App_Themes/css/admin_css.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" language="javascript">
        function department(str) {
            window.open('../../WebCommon/Department.aspx?SID=' + str, '', 'width=700,height=580,top=200, left=300');
        } 
    </script>
    <script type="text/javascript" language="javascript">
        function userinfo(str) {
            window.open('../../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300');
        }
    </script>
    <script type="text/javascript" language="javascript">
        function slavedepartment(str) {
            window.open('../../WebCommon/DepartmentSlave.aspx?SID=' + str, '', 'width=700,height=580,top=80, left=250');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table class="table_rightFrame" border="0" cellpadding="0" cellspacing="0" style="background-color: #999999">
                <tr class="tr_Button" style="background-color: #ced7f7;">
                    <td colspan="2" valign="top">
                        <asp:Button ID="btnNew" runat="server" Text="新建部门" OnClick="btnNew_Click" CausesValidation="False"
                            SkinID="buttonSkin" />
                        <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" CausesValidation="False"
                            SkinID="buttonSkin" OnClientClick="return confirm('确认要删除吗？');" />
                        <asp:Button ID="btnMove" runat="server" Text="移动" OnClick="btnMove_Click" CausesValidation="False"
                            SkinID="buttonSkin" />
                        <asp:Button ID="btnEditCompany" runat="server" CausesValidation="False" OnClick="btnEditCompany_Click"
                            SkinID="buttonSkin" Text="修改组织名称" /><br />
                        <hr />
                    </td>
                </tr>
                <tr class="trTable">
                    <td valign="top">
                        <br />
                        <span style="font-size: 12pt; font-weight: bold">组织架构</span>
                    </td>
                    <td align="center" valign="top">
                    </td>
                </tr>
                <tr class="trTable" style="height: 550px">
                    <td valign="top" class="td_Tree">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:TreeView ID="trvDepartment" runat="server" OnSelectedNodeChanged="trvDepartment_SelectedNodeChanged"
                                    SkinID="treeviewSkin" Font-Size="9pt" ForeColor="Black" ShowLines="True">
                                </asp:TreeView>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="btnOK" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                    <td valign="top" class="td_Display" align="center">
                        <br />
                        <span style="font-size: 12pt; font-weight: bold">部门信息(*为必填项)</span>
                        <br />
                        <br />
                        <table width="60%" cellpadding="0" cellspacing="1" border="0" style="background-color: #999999">
                            <tr class="trTable">
                                <td>
                                    <br />
                                    <table cellpadding="2" cellspacing="0" border="0" style="width: 478px">
                                        <tr>
                                            <td align="right" style="width: 100px">
                                                当前状态 :&nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:RadioButton ID="rdbTrue" runat="server" Text="启用" GroupName="1" Checked="True"
                                                    SkinID="radiobuttonSkin"></asp:RadioButton>
                                                |
                                                <asp:RadioButton ID="rdbFalse" runat="server" Text="停用" GroupName="1" SkinID="radiobuttonSkin">
                                                </asp:RadioButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 100px">
                                                部门编号 :&nbsp;
                                            </td>
                                            <td valign="top" align="left">
                                                <asp:TextBox ID="txtDepartmentNo" runat="server"></asp:TextBox>*<asp:RequiredFieldValidator
                                                    ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDepartmentNo"
                                                    Display="Dynamic" ErrorMessage="部门编号不可以为空" EnableClientScript="False"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr style="color: #000000">
                                            <td align="right" style="width: 100px">
                                                排 序 号 :&nbsp;
                                            </td>
                                            <td valign="top" align="left">
                                                <asp:TextBox ID="txtDepartmentSortId" runat="server"></asp:TextBox>*<asp:CompareValidator
                                                    ID="CompareValidator1" runat="server" ErrorMessage="排序号必须为整数" Operator="DataTypeCheck"
                                                    Type="Integer" ControlToValidate="txtDepartmentSortId" Display="Dynamic"></asp:CompareValidator><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDepartmentSortId"
                                                        Display="Dynamic" ErrorMessage="部门排序号不可以为空"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 100px">
                                                部门名称 :&nbsp;
                                            </td>
                                            <td valign="top" align="left">
                                                <asp:TextBox ID="txtDepartmentName" runat="server" SkinID="textboxSkin"></asp:TextBox>*<asp:RequiredFieldValidator
                                                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDepartmentName"
                                                    Display="Dynamic" ErrorMessage="部门名称不可以为空"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 100px">
                                                部门主管 :&nbsp;
                                            </td>
                                            <td valign="bottom" align="left">
                                                <input id="txtDepartmentMaster" runat="server" type="text" readonly="readOnly" /><a
                                                    href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><img alt="" border="0"
                                                        src="../../images/addpages.jpg" /></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 100px">
                                                部门描述 :&nbsp;
                                            </td>
                                            <td valign="top" align="left">
                                                <asp:TextBox ID="txtDepartmentRemark" runat="server" TextMode="MultiLine" MaxLength="500"
                                                    SkinID="textboxMultiLineSkin"></asp:TextBox>(最大长度250个汉字)
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 100px">
                                                默认评估人:
                                            </td>
                                            <td align="left" valign="top">
                                                <input id="txtEvaluatePeople" runat="server" type="text" readonly="readOnly" /><a
                                                    href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><img alt="" border="0"
                                                        src="../../images/addpages.jpg" /></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 100px">
                                                默认配合部门:
                                            </td>
                                            <td align="left" valign="top">
                                                <input id="txtSlaveDepartment" runat="server" type="text" readonly="readOnly" /><a
                                                    href="#" onclick="javascript:slavedepartment(parentNode.firstChild.id );"><img alt=""
                                                        border="0" src="../../images/addpages.jpg" /></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <asp:Button ID="btnOK" runat="server" Text="确认" OnClick="btnOK_Click" SkinID="buttonSkin">
                                                </asp:Button>
                                                <asp:LinkButton ID="btnIntroduction" runat="server" Text="编辑战略前言" OnClick="btnIntroduction_Click"
                                                    CausesValidation="False" />
                                                <asp:LinkButton ID="btnCoreevents" runat="server" CausesValidation="False" Text="编辑战略核心大事"
                                                    OnClick="btnCoreevents_Click" />
                                                <asp:LinkButton ID="btnManagementObject" runat="server" Text="编辑战略管理目标" CausesValidation="False"
                                                    OnClick="btnManagementObject_Click" />
                                                <asp:LinkButton ID="btnManagementSlogans" runat="server" Text="编辑战略管理口号" CausesValidation="False"
                                                    OnClick="btnManagementSlogans_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
                                                <asp:LinkButton ID="btnYearIntroduction" runat="server" Text="编辑年前言" OnClick="btnYearIntroduction_Click"
                                                    CausesValidation="False" />
                                                <asp:LinkButton ID="btnYearCoreevents" runat="server" CausesValidation="False" Text="编辑年核心大事"
                                                    OnClick="btnYearCoreevents_Click" />
                                                <asp:LinkButton ID="btnYearManagementObject" runat="server" Text="编辑年管理目标" CausesValidation="False"
                                                    OnClick="btnYearManagementObject_Click" />
                                                <asp:LinkButton ID="btnYearManagementSlogans" runat="server" Text="编辑年管理口号" CausesValidation="False"
                                                    OnClick="btnYearManagementSlogans_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="trvDepartment" EventName="SelectedNodeChanged" />
        </Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
